package com.jia.together.service;

import com.jia.together.entity.Permission;
import com.jia.together.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dujiajia
 * @since 2021-02-19
 */
public interface UserService extends IService<User> {
    Map<String, Object> selectPageList(Long pageNum, Long pageSize);

    User selectByUsername(String username);

    List<Permission> selectPermissionByUsername(String username);

    User selectInfoByToken(HttpServletRequest request);

    String easyLogin(User user);
}
